﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designer.Views
{
    public class ItemHistory
    {
        public ItemHistory(ServiceProxy.DesignServiceRef.ItemHistory source)
        {
            Id = source.Id;
            ItemId = source.ItemId;
            Operator = source.Operator;
            OperatedTime = source.OperatedTime.ToString("yyyy-MM-dd HH:mm:ss");
            Action = source.Action;
            Version = source.Version;
        }
        public Guid Id { get; set; }
        public Guid ItemId { get; set; }
        public string Operator { get; set; }
        public string OperatedTime { get; set; }
        public string Action { get; set; }
        public int Version { get; set; }
    }
}
